@extends('layouts.app')

@section('content')


    <div class="container" style="margin:51px auto;">
        <div class="row">
            <ul class="nav nav-tabs" id="otherInfoTab">
                <li class="active" style="width:100%;text-align:center;"><a href="#one">资讯直播</a></li>
                {{--<li style="width:50%;text-align:center"><a href="#two">平台公告</a></li>--}}
            </ul>

            <div class="tab-content">
                <div class="tab-pane active" id="one">

                </div>
            </div>
        </div>
    </div>
    <style>
    .nav-tabs li.active a{background: #db3031;color: #fff;font-size: 1.4rem;}
        /*a{color: #333;}*/
        /*.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus{color: #fff;}*/
        /*.nav-tabs li.active a{background: #db3031;}*/
    </style>
    <script>
    $(function() {
        $.ajax({
                type:'post',
                url:'{{url('/ajax_add')}}',
                data:{'_token':"{{csrf_token()}}"},
                success:function(data){
                    $("#one").html(data.data);
                    $(".footer").css('display','none');
                    $(".dlappbox").css('display','none');
                    $(".timebanner").css('display','none');
                }
        })

        setInterval(function(){
            $.ajax({
                type:'post',
                url:'{{url('/ajax_add')}}',
                data:{'_token':"{{ csrf_token() }}"},
                success:function(data){
                    $("#one").html(data.data);
                    $(".footer").css('display','none');
                    $(".dlappbox").css('display','none');
                    $(".timebanner").css('display','none');
                }
            })
            //window.location.href="{{url('/get_article')}}";
        },60000);
    })
    </script>

    @endsection
    @section('footer')
            <!--footer-->
    <div class="footerBox">
        <a href="{{ url('/home') }}" class="footerItem "><img src="{{ asset('images/index/icon01.png') }}" alt="" class="footer-icon"><br>首页</a>
        <a href="{{ url('/chat') }}" class="footerItem"><img src="{{ asset('images/index/icon02.png') }}" alt="" class="footer-icon"><br>互动</a>
        <a href="{{ url('/get_article') }}" class="footerItem footerItem-cur"><img src="{{ asset('images/index/icon04-cur.png') }}" alt="" class="footer-icon"><br>资讯</a>
        <a href="{{ url('/userinfo') }}" class="footerItem "><img src="{{ asset('images/index/icon03.png') }}" alt="" class="footer-icon"><br>我的</a>
    </div>
@show